

################################
i = 1
while i <10:
    j=1
    while j<i+1:
        
        print('{}*{}={:<4}'.format(i,j,i*j),end="")
        j = j+1
    i += 1
    
    print('')
print('11'*50)
################################
i = 9
while i >0:
    j=1
    k=0
    while k<i-9:
        print('        ',end='')
        k +=1
    while j<i+1:
        
        print('{}*{}={:<4}'.format(i,j,i*j),end="")
        j = j+1
    i -= 1
    
    print('')



print('22'*50)
################################
i = 1
while i <10:
    j=1
    k=1
    while k<10-i:
        print('        ',end='')
        k +=1
    while j<i+1:
        
        print('{}*{}={:<4}'.format(i,j,i*j),end="")
        j = j+1
    i += 1
    
    print('')
print('33'*50)
##########################
i = 9
while i >0:
    j=1
    k=0
    while k < 9-i:
        print('        ',end='')
        k +=1
    while j<i+1:
        
        print('{}*{}={:<4}'.format(i,j,i*j),end="")
        j = j+1
    i -= 1
    
    print('')

print('44'*50)
